package com.jifen.user.vo;

import org.apache.commons.lang3.StringUtils;

/**
 * 类名：UserInviteProfitVo
 * 作者：zhangtao
 * 日期：2019/7/4 14:42
 * 版本：1.0.0
 * 描述：TODO
 **/
public class UserInviteProfitVo {

    private String name;

    private String date;

    private double amount;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDate() {
        if(StringUtils.isNotBlank(date)) {
            date = date.replace("-", ".");
            date = date.substring(0, 16);
        }
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }
}
